<script>
$("#"+currentid).css("display","block");
$("td[name='"+currentid+"']").addClass("active");

$(".sub-menu-txt").click(function(){
    $(".active").removeClass("active");
    $(this).addClass("active");
    currentid = $(this).attr("name");
    storage.setItem("profileid",currentid);
    $(".indexcontentdiv").css("display","none");
    $("#"+currentid).css("display","block");
    location.href = "<?=base_url()?>profile/"+currentid;
});
</script>